let input = [1, 2, 3]

input = input.map(item => item + 1)
console.log(input)